<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <title>登录 - 论坛</title>
    <head th:insert="~{import :: head}"></head>

</head>
<body>
<div class="index-body">
    <div class="fixed-top" th:insert="~{navigation :: nav}"></div>
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12" >

                <h3>注册</h3>
                <br>


                <form action="/register" method="post">
                    <div class="form-group">
                        <label for="name">账户</label>
                        <input type="text" class="form-control" id="name" name="name" aria-describedby="accountHelp" placeholder="">
                        <small id="accountHelp" class="form-text text-muted">唯一账户名</small>
                    </div>
                    <div class="form-group">
                        <label for="nickname">昵称</label>
                        <input type="text" class="form-control" id="nickname" name="nickname" placeholder="">
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" class="form-control" id="password" name="password" placeholder="">
                    </div>
                    <button type="submit" class="btn btn-primary">注册</button>
                    <a href="/login"><button type="button" class="btn btn-outline-primary">返回</button></a>
                    <div class="alert alert-danger alert-dismissible fade show" role="alert" th:text="${error}" th:if="${error != null}"></div>
                </form>

                <hr>
                <h5>第三方登录/注册</h5>
                <a href="https://github.com/login/oauth/authorize?client_id=Ov23liwM5MCFKyEQFfZv&redirect_uri=http://localhost:8080/callback&scope=user&state=1"><img src="/images/github-mark.svg" class="img-fluid" width="30px" height="30px"></a>

            </div>

        </div>
    </div>
</div>
</body>
</html>